﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

namespace ReportMobile.v2 {
    
    public partial class SYB_feed_detail : System.Web.UI.Page {
        public string area, variety, type;
        public DataTable dt;
        public ReportMobile.inc.Common cm = new inc.Common();
        protected void Page_Load(object sender, EventArgs e) {
            if (Request["area"] != null && Request["corp"] != null & Request["type"] != null) {
                area = Request["area"];
                variety = Request["corp"];
                type = Request["type"];
                if (area == "cyq") {
                    dt = cm.GetBalanceDetail_CYQ(variety, type);
                }
                else if (area == "fcy") {
                    dt = cm.GetBalanceDetail_FCY(variety, type);
                }
                rptDetail.DataSource = dt;
                rptDetail.DataBind();
            }
        }
    }
}